home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / pangomm-1.4 / pangomm / layoutrun.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-20  |  2.2 KB  |  93 lines

  1. // -*- c++ -*-
  2. // Generated by gtkmmproc -- DO NOT MODIFY!
  3. #ifndef _PANGOMM_LAYOUTRUN_H
  4. #define _PANGOMM_LAYOUTRUN_H
  5.  
  6. #include <glibmm.h>
  7.  
  8. /* layoutrun.h
  9.  *
  10.  * Copyright (C) 1998-1999 The gtkmm Development Team
  11.  *
  12.  * This library is free software; you can redistribute it and/or
  13.  * modify it under the terms of the GNU Library General Public
  14.  * License as published by the Free Software Foundation; either
  15.  * version 2 of the License, or (at your option) any later version.
  16.  *
  17.  * This library is distributed in the hope that it will be useful,
  18.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  20.  * Library General Public License for more details.
  21.  *
  22.  * You should have received a copy of the GNU Library General Public
  23.  * License along with this library; if not, write to the Free
  24.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25.  */
  26.  
  27. #include <pango/pango-layout.h>
  28.  
  29.  
  30. namespace Pango
  31. {
  32.  
  33. class Item;
  34. class GlyphString;
  35.  
  36. /** A Pango::LayoutRun represents a single run within a PangoLayoutLine.
  37.  */
  38. class LayoutRun
  39. {
  40.   public:
  41. #ifndef DOXYGEN_SHOULD_SKIP_THIS
  42.   typedef LayoutRun CppObjectType;
  43.   typedef PangoLayoutRun BaseObjectType;
  44. #endif /* DOXYGEN_SHOULD_SKIP_THIS */
  45.  
  46. private:
  47.  
  48.  
  49. protected:
  50.   LayoutRun();
  51.  
  52. public:
  53.   explicit LayoutRun(const PangoLayoutRun* src);
  54.  
  55.   /** Gets the Pango::Item object that provides information about the segment of text in this run.
  56.    * @return A Pango::Item object.
  57.    */
  58.   Item get_item() const;
  59.  
  60.   /** Gets the string of glyphs obtained by shaping the text for this item.
  61.    * @return A Pango::GlyphString object.
  62.    */
  63.   GlyphString get_glyphs() const;
  64.  
  65.   /// Provides access to the underlying C GObject.  
  66.   PangoLayoutRun*       gobj()       { return &gobject_; }
  67.   /// Provides access to the underlying C GObject.
  68.   const PangoLayoutRun* gobj() const { return &gobject_; }
  69.  
  70. protected:
  71.   PangoLayoutRun gobject_;
  72.  
  73.  
  74. };
  75.  
  76. } /* namespace Pango */
  77.  
  78.  
  79. namespace Glib
  80. {
  81.  
  82. /** @relates Pango::LayoutRun */
  83. Pango::LayoutRun& wrap(PangoLayoutRun* object);
  84.  
  85. /** @relates Pango::LayoutRun */
  86. const Pango::LayoutRun& wrap(const PangoLayoutRun* object);
  87.  
  88. } /* namepspace Glib */
  89.  
  90.  
  91. #endif /* _PANGOMM_LAYOUTRUN_H */
  92.  
  93.